---
title: "Accessibility Checker Rule Help: WCAG20_Img_LinkTextNotRedundant"
---
import "../../../styles/ToolHelp.scss"
import { CodeSnippet, Tag } from "carbon-components-react";

<div className="toolHelp">
<Row>
<Column colLg={16} colMd={8} colSm={4} className="toolHead">

### Link text is repeated in an image `alt` attribute

<div id="locLevel"></div>

 The text alternative for an image within a link should not repeat the link text or adjacent link text

</Column>
</Row>
<Row>
<Column colLg={11} colMd={5} colSm={4} className="toolMain">

### Why is this important?

When the text equivalent of an image inside or adjacent to a link is the same as the link text, people with visual impairments who use a screen reader will hear the same text announced twice. Also those who use text only browsers will see both the link text and text equivalent of the image, and can be confused by the redundant text.

<div id="locSnippet"></div>

### What to do

* If a link has text and a redundant image, set the image `alt` attribute to `alt=“”` (null alt without any spaces);
* OR If a link has text and an image that adds important information to the text, set the image `alt` attribute to convey the added information.
  (e.g. `<a><img alt="urgent">new mail</a>`);
* OR If adjacent links have different targets but the same text, change the link text or the `alt` attribute on the image to distinguish the purpose of each link;
* OR If adjacent links have the same target, combine them into a single link and set the image `alt` attribute to `alt=“”`.

</Column>
<Column colLg={5} colMd={3} colSm={4} className="toolLeft">

### About this requirement

[IBM 1.1.1 Non-text content](https://www.ibm.com/able/requirements/requirements/#1_1_1)
[IBM 2.4.4 Link Purpose (in Context)](https://www.ibm.com/able/requirements/requirements/#2_4_4)
[WCAG 2.1 technique H2](https://www.w3.org/TR/WCAG20-TECHS/H2.html)

### Who does this affect?

* People using a screen reader, including blind, low vision and neurodivergent people
* People using text-based browsers (e.g., Lynx) or audio interfaces

</Column>
</Row>
</div>

export default ({ children, _frontmatter }) => (<React.Fragment>{children}</React.Fragment>)
